<?php
namespace app\api\model;
use traits\model\SoftDelete;

class Config extends Base
{
    use SoftDelete;
    public function getConfigKey(){
        $data =$this->selectList([],'k,v');
        $data  = $data->toArray();
        $newData = [];
        foreach ($data as $value){
            $newData[$value['k']]=$value['v'];
        }
        return $newData;
    }
}